package com.yserp.project.erp.order.selfpurchrigistration.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yserp.framework.aspectj.lang.annotation.Excel;
import com.yserp.framework.web.domain.BaseEntity;
import com.yserp.project.erp.common.anno.MybatisLikeSearch;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 自购物料登记对象 erp_self_purch_rigistration
 * 
 * @author yserp
 * @date 2022-08-09
 */
@TableName("erp_self_purch_rigistration")
@Data
public class SelfPurchRigistration extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @MybatisLikeSearch
    private String goodsName;

    /** 规格 */
    @Excel(name = "规格")
    @MybatisLikeSearch
    private String goodsFormat;

    /** 数量 */
    @Excel(name = "数量")
    private Long goodsNum;

    /** 单位 */
    @Excel(name = "单位")
    private String goodsUnit;

    /** 运输费用 */
    @Excel(name = "运输费用")
    private BigDecimal logisticsFee;

    /** 下单金额 */
    @Excel(name = "下单金额")
    private BigDecimal amount;

    /** 下单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /** 购买平台 */
    @Excel(name = "购买平台")
    @MybatisLikeSearch
    private String purchPlatform;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    private String delFlag;


}
